/*
* Buffer.cpp
*
*  Created on: Mar 28, 2011
*      Author: hxu
*/

#include "Buffer.h"

using namespace std;
using namespace Cxuh;

namespace Cxuh {

	double Buffer::Rout = 0;
	double Buffer::Cin = 0;
	double Buffer::Dbuf = 0;
	double Buffer::cload_limit = 0;	// Cmax a buffer can drive
	Buffer::Buffer(int id1) :
	BtreeNode(id1, BUF){
		w = 1;
		this->C = Cin; // from BtreeNode
		this->R = Rout; // from BtreeNode
	}

	Buffer::Buffer(int id1, int x1, int y1, int z1) :
	BtreeNode(id1, BUF, x1, y1, z1){
		w = 1;
		this->C = Cin; // from BtreeNode
		this->R = Rout; // from BtreeNode
	}

	Buffer::Buffer(int id1, int x1, int y1, int z1, double r1, double c1, double d1, double load1) :
	BtreeNode(id1, BUF, x1, y1, z1){
		w = 1;
		this->C = c1; // from BtreeNode
		this->R = r1; // from BtreeNode
	}

	Buffer::~Buffer(){
	}

}
